<?php
include_once 'connection.php';

$result = mysql_query('SELECT * FROM tuser WHERE id =' . $_REQUEST['id']);

if (mysql_num_rows($result) > 0) {
    $obj = mysql_fetch_object($result);
    echo '{success:true, data:' . json_encode($obj) . '}';
} else {
    echo '{success: false}';
}

?>
